package cn.edu.njtc.entity.dto;

import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ActivityCreateDto {
    @NotBlank(message = "活动名称不能为空")
    private String activityName;

    private String activityDescription;

    @NotNull(message = "活动日期不能为空")
    @Future(message = "活动日期必须是将来的时间")
    private LocalDateTime activityDate;

    @NotBlank(message = "组织者不能为空")
    private String organizer;

    @NotBlank(message = "活动地点不能为空")
    private String location;
}

